import request from '@/utils/request'

// 查询工资分摊列表
export function listGzft(query) {
  return request({
    url: '/basebill/gzft/list',
    method: 'get',
    params: query
  })
}

// 查询工资分摊详细
export function getGzft(fid) {
  return request({
    url: '/basebill/gzft/' + fid,
    method: 'get'
  })
}

// 新增工资分摊
export function addGzft(data) {
  return request({
    url: '/basebill/gzft',
    method: 'post',
    data: data
  })
}

// 修改工资分摊
export function updateGzft(data) {
  return request({
    url: '/basebill/gzft',
    method: 'put',
    data: data
  })
}

// 删除工资分摊
export function delGzft(fid) {
  return request({
    url: '/basebill/gzft/' + fid,
    method: 'delete'
  })
}

//导入工资分摊
export function importGzft(fid) {
  return request({
    url: '/basebill/gzft/importGzft/' + fid,
    method: 'get'
  })
}
